package com.seaboxdata.service.impl;

import com.seaboxdata.dao.SfzInfoDao;
import com.seaboxdata.entity.SfzInfo;
import com.seaboxdata.service.SfzInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author
 * @create 2021-06-04 17:34
 **/
@Service("sfzInfoService")
public class SfzInfoServiceImpl implements SfzInfoService {

    @Autowired
    private SfzInfoDao sfzInfoDao;

    @Override
    public List<SfzInfo> getAllSfz() {
        return sfzInfoDao.getAllSfz();
    }

    @Override
    public List<String> getAllHalfInoculatedSfz() {
        return sfzInfoDao.getAllHalfInoculatedSfz();
    }

    @Override
    public void updateInoculatedFlag(String sfzhm) {
        sfzInfoDao.updateInoculatedFlag(sfzhm);
    }

    @Override
    public void updateHalfInoculatedFlag(String sfzhm) {
        sfzInfoDao.updateHalfInoculatedFlag(sfzhm);
    }
}
